package com.xm;

import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 重试
 *
 * @param
 * @return
 * @date 2024/10/9 15:16
 * @author lililiang
 */
@Slf4j
@RestController
@RequestMapping("/retry")
public class RetryController {

    @Resource
    private RetryService retryService;

    @SneakyThrows
    @PostMapping("/t1")
    public String test() {
        return retryService.myMethod();

    }
}
